package com.example.hxds.vhr.service;

import com.example.hxds.common.util.PageUtils;
import com.example.hxds.vhr.db.pojo.VoucherEntity;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author XUYANG
 * @Date 2024-04-08 18:47
 */
public interface VoucherService {
    public PageUtils searchVoucherByPage(Map param);
    public int insert(VoucherEntity entity);
    public int updateVoucherStatus(Map param);
    public int deleteVoucherByIds(Long[] ids);
    public PageUtils searchUnTakeVoucherByPage(Map param);
    public PageUtils searchUnUseVoucherByPage(Map param);
    public PageUtils searchUsedVoucherByPage(Map param);
    public long searchUnUseVoucherCount(Map param);
    public boolean takeVoucher(Map param);
    public HashMap searchBestUnUseVoucher(Map param);
}
